package com.dangdang.spel.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dangdang.spel.anno.MyAuth;
import com.dangdang.spel.rest.RestfulDto;

@RestController
public class TestController {

	@RequestMapping("/check")
	@MyAuth(desc = "您没有权限",spel = "@testService.isAuth(#name)")
	public RestfulDto check(String name) {
		return RestfulDto.successed();
	}
}
